// PhysicalBook.java
package Object.work.model;

public class PhysicalBook extends Book {
    private String location;
    private boolean isAvailable;

    public PhysicalBook(String id, String title, int year, String author, String isbn, String location) {
        super(id, title, year, author, isbn);
        this.location = location;
        this.isAvailable = true;
    }

    @Override
    public String getItemType() {
        return "Physical Book";
    }

    // Getters and Setters
    public String getLocation() {
        return location;
    }

    public boolean isAvailable() {
        return isAvailable;
    }

    public void setAvailable(boolean available) {
        isAvailable = available;
    }

    @Override
    public String toString() {
        return super.toString() + ", Location: " + location + ", Available: " + isAvailable;
    }
}